package bhwz.seac3.bl;

//import java.util.HashSet;
//import java.util.Set;

import bhwz.seac3.blservice.AutoRedisplay;
import bhwz.seac3.blservice.ReDisplayControllerBLService;

public class RedisplayControllerBL implements ReDisplayControllerBLService{
	//Set<AutoRedisplay> items=new HashSet<>();

	@Override
	public void register(AutoRedisplay item) {
		//items.add(item);
	}

	@Override
	public void remove(AutoRedisplay item) {
		//items.remove(item);
	}

	@Override
	public void redisplay() {
		forceRedisplay();
		/*
		int[] redisplayCounter=new int[]{0};
		items.forEach(item->{
			if(item.needAutoRedisplay()){
				item.redisplay();
				redisplayCounter[0]++;
			}
		});
		if(redisplayCounter[0]==0)
			forceRedisplay();
		*/
	}

	@Override
	public void forceRedisplay() {
		/*
		items.forEach(item->{
			item.redisplay();
		});
		*/
	}
}
